package per.dg.sqlite.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import per.dg.sqlite.Constant;

@Entity(tableName = Constant.TABLE_NAME)
public class User {

    public User(String name){
        this.name = name;
    }

    @PrimaryKey
    int id;

    @ColumnInfo(name = Constant.TABLE_VALUE_NAME)
    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
